package com.example.demoapp.brvah.bean;


import com.chad.library.adapter.base.entity.MultiItemEntity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MultipleItemBean implements MultiItemEntity {
//    点赞类型(0是文章，1是资讯，2是视频，3是音频)

    public static final int TYPE_DOCUMENT = 0;
    public static final int TYPE_INFORMATION = 1;
    public static final int TYPE_VIDEO = 2;
    public static final int TYPE_AUDIO = 3;




    public void setType(int type) {
        this.type = type;
    }

    public int getSpanSize() {
        return spanSize;
    }

    //必须的属性，用于表示当前Bean类型与占用空间(布局空间)
    private int type;
    private int spanSize = 3;
    //自定义属性
    private String id;
    private String title;
    private String subtitle;
    private String link;
    private String status;
    private String source;
    private String delFlag;
    private int agree;
    private int collect;
    private int comment;
    private int browse;
    private String createTime;
    private String updateTime;
    private String createBy;
    private String updateBy;
    private String download;
    private int isAgree;
    private int isCollect;
    private String richText;

    public String getRichText() {
        return richText;
    }

    public void setRichText(String richText) {
        this.richText = richText;
    }

    public int getIsAgree() {
        return isAgree;
    }

    public void setIsAgree(int isAgree) {
        this.isAgree = isAgree;
    }

    public int getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(int isCollect) {
        this.isCollect = isCollect;
    }

    public int getType() {
        return type;
    }

    public void setSpanSize(int spanSize) {
        this.spanSize = spanSize;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String isStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String isSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String isDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public int getAgree() {
        return agree;
    }

    public void setAgree(int agree) {
        this.agree = agree;
    }

    public int getCollect() {
        return collect;
    }

    public void setCollect(int collect) {
        this.collect = collect;
    }

    public int getComment() {
        return comment;
    }

    public void setComment(int comment) {
        this.comment = comment;
    }

    public int getBrowse() {
        return browse;
    }

    public void setBrowse(int browse) {
        this.browse = browse;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String isDownload() {
        return download;
    }

    public void setDownload(String download) {
        this.download = download;
    }

    @Override
    public int getItemType() {
        return type;
    }

}
